package hu.crs.demobank.function.login;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

public class Logout {

	public String logout() {
		HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
		session.setAttribute("loggedIn", "false");
		session.invalidate();
		return "logout";
	}
}
